package com.punch.common.utils;

import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;

public class DateUtil {

    public static Long getRemainSecondsOneDay(LocalDateTime currentDateTime) {
        LocalDateTime midnight = currentDateTime.plusDays(1).withHour(0).withMinute(0)
                .withSecond(0).withNano(0);
        long seconds = ChronoUnit.SECONDS.between(currentDateTime, midnight);
        return seconds;
    }

}
